package com.allwayz.service;

import com.allwayz.entity.Payment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author allwayz
 */
public interface PaymentService {
    /**
     * 新建一条payment
     * @param payment
     * @return
     */
    public int create(Payment payment);

    /**
     * 根据Id查询
     * @param id
     * @return
     */
    public Payment getPaymentById(@Param("id") Long id);

    /**
     * 查询全部
     * @return
     */
    public List<Payment> getPaymentList();
}
